package com.zbxx.webservice;

import com.zbxx.webservice.api.HelloServiceImpl;
import org.apache.cxf.jaxrs.JAXRSServerFactoryBean;

/**
 * @author 万仁杰
 * @date 2019/06/10
 */
public class RestFulServer {

    public static void main(String[] args) {
        JAXRSServerFactoryBean jaxrsServerFactoryBean = new JAXRSServerFactoryBean();
        jaxrsServerFactoryBean.setAddress("http://localhost:8888");
        jaxrsServerFactoryBean.setServiceBean(new HelloServiceImpl());
        jaxrsServerFactoryBean.create();
    }

}
